package com.hwl.eduservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hwl.eduservice.pojo.Course;
import com.hwl.eduservice.pojo.frontVo.WebCourseVo;
import com.hwl.eduservice.pojo.vo.CoursePublishVo;
import com.hwl.eduservice.pojo.vo.CourseQueryVo;
import com.hwl.eduservice.pojo.vo.CourseVo;
import com.hwl.servicebase.dto.CourseDto;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author long
 * @since 2021-09-21
 */
public interface CourseMapper extends BaseMapper<Course> {

    /**
     * 分页条件查询课程列表的详细信息
     */
    Page<CourseVo> getAllCourseInfo(Page<CourseVo> courseVoPage, CourseQueryVo courseQueryVo);

    /**
     * 获取课程的发布信息
     */
    CoursePublishVo selectCoursePublish(String id);

    /**
     * 前台课程的详细信息
     */
    WebCourseVo selectCourseById(String courseId);

    /**
     * 根据课程id查询课程信息
     */
    CourseDto getCourseDtoById(String courseId);
}
